package cn.ssm_05.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import cn.ssm_05.entity.User;

//组件名称 userDao

//注解标识dao类
@Repository
public class UserDaoImpl implements UserDao {
	@Override
	public List<User> selectUser() {
		System.out.println("userDao");
		List<User> users = new ArrayList<User>();
		users.add(new User(1, "admin"));
		users.add(new User(2, "test"));
		return users;
	}
}
